package com.navi.loaddata.core.oracleEntity.array;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.sql.Time;

/**
 * Created by ghost on 2018/5/15.
 */
public class LdrArrayGlassOldTPK implements Serializable {
    private String stepId;
    private Time glassStartTime;
    private String glassId;

    @Column(name = "STEP_ID")
    @Id
    public String getStepId() {
        return stepId;
    }

    public void setStepId(String stepId) {
        this.stepId = stepId;
    }

    @Column(name = "GLASS_START_TIME")
    @Id
    public Time getGlassStartTime() {
        return glassStartTime;
    }

    public void setGlassStartTime(Time glassStartTime) {
        this.glassStartTime = glassStartTime;
    }

    @Column(name = "GLASS_ID")
    @Id
    public String getGlassId() {
        return glassId;
    }

    public void setGlassId(String glassId) {
        this.glassId = glassId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        LdrArrayGlassOldTPK that = (LdrArrayGlassOldTPK) o;

        if (stepId != null ? !stepId.equals(that.stepId) : that.stepId != null) return false;
        if (glassStartTime != null ? !glassStartTime.equals(that.glassStartTime) : that.glassStartTime != null)
            return false;
        if (glassId != null ? !glassId.equals(that.glassId) : that.glassId != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = stepId != null ? stepId.hashCode() : 0;
        result = 31 * result + (glassStartTime != null ? glassStartTime.hashCode() : 0);
        result = 31 * result + (glassId != null ? glassId.hashCode() : 0);
        return result;
    }
}
